package reflect;

/**
 * 变长参
 */
public class ArgsDemo {
    public static void main(String[] args) {
        //变长参是编译器认可的，最后编译会被改为数组
        doSome(1,"a","b","c");
        doSome(2);
        doSome(3,"s","a");
    }
    public static void doSome(int a,String... s ){
        System.out.println(s.length);
    }
}
